scale: Add property annotations
authorMatthias Clasen <mclasen@redhat.com>
Thu, 25 Feb 2021 02:57:55 +0000 (21:57 -0500)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:37:32 +0000 (16:37 +0000)
Connect properties, getters, and setters with annotations.

gtk/gtkscale.c

index 2d443ef2eeead2ece6290e5bdf742a136168aa01..59c80371d13f27187930445ca6557a65e1c17845 100644 (file)
@@ -674,7 +674,7 @@ gtk_scale_class_init (GtkScaleClass *class)
   class->get_layout_offsets = gtk_scale_real_get_layout_offsets;
 
   /**
-   * GtkScale:digits:
+   * GtkScale:digits: (attributes org.gtk.Method.get=gtk_scale_get_digits org.gtk.Method.set=gtk_scale_set_digits)
    *
    * The number of decimal places that are displayed in the value.
    */
@@ -687,7 +687,7 @@ gtk_scale_class_init (GtkScaleClass *class)
                         GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GtkScale:draw-value:
+   * GtkScale:draw-value: (attributes org.gtk.Method.get=gtk_scale_get_draw_value org.gtk.Method.set=gtk_scale_set_draw_value)
    *
    * Whether the current value is displayed as a string next to the slider.
    */
@@ -699,7 +699,7 @@ gtk_scale_class_init (GtkScaleClass *class)
                             GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GtkScale:has-origin:
+   * GtkScale:has-origin: (attributes org.gtk.Method.get=gtk_scale_get_has_origin org.gtk.Method.set=gtk_scale_set_has_origin)
    *
    * Whether the scale has an origin.
    */
@@ -711,7 +711,7 @@ gtk_scale_class_init (GtkScaleClass *class)
                             GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GtkScale:value-pos:
+   * GtkScale:value-pos: (attributes org.gtk.Method.get=gtk_scale_get_value_pos org.gtk.Method.set=gtk_scale_set_value_pos)
    *
    * The position in which the current value is displayed.
    */
@@ -1001,7 +1001,7 @@ gtk_scale_new_with_range (GtkOrientation orientation,
 }
 
 /**
- * gtk_scale_set_digits:
+ * gtk_scale_set_digits: (attributes org.gtk.Method.set_property=digits)
  * @scale: a `GtkScale`
  * @digits: the number of decimal places to display,
  *     e.g. use 1 to display 1.0, 2 to display 1.00, etc
@@ -1045,7 +1045,7 @@ gtk_scale_set_digits (GtkScale *scale,
 }
 
 /**
- * gtk_scale_get_digits:
+ * gtk_scale_get_digits: (attributes org.gtk.Method.get_property=digits)
  * @scale: a `GtkScale`
  *
  * Gets the number of decimal places that are displayed in the value.
@@ -1096,7 +1096,7 @@ update_value_position (GtkScale *scale)
 }
 
 /**
- * gtk_scale_set_draw_value:
+ * gtk_scale_set_draw_value: (attributes org.gtk.Method.set_property=draw-value)
  * @scale: a #GtkScale
  * @draw_value: %TRUE to draw the value
  *
@@ -1145,7 +1145,7 @@ gtk_scale_set_draw_value (GtkScale *scale,
 }
 
 /**
- * gtk_scale_get_draw_value:
+ * gtk_scale_get_draw_value: (attributes org.gtk.Method.get_property=draw-value)
  * @scale: a `GtkScale`
  *
  * Returns whether the current value is displayed as a string
@@ -1164,7 +1164,7 @@ gtk_scale_get_draw_value (GtkScale *scale)
 }
 
 /**
- * gtk_scale_set_has_origin:
+ * gtk_scale_set_has_origin: (attributes org.gtk.Method.set_property=has-origin)
  * @scale: a `GtkScale`
  * @has_origin: %TRUE if the scale has an origin
  *
@@ -1193,7 +1193,7 @@ gtk_scale_set_has_origin (GtkScale *scale,
 }
 
 /**
- * gtk_scale_get_has_origin:
+ * gtk_scale_get_has_origin: (attributes org.gtk.Method.get_property=has-origin)
  * @scale: a `GtkScale`
  *
  * Returns whether the scale has an origin.
@@ -1209,7 +1209,7 @@ gtk_scale_get_has_origin (GtkScale *scale)
 }
 
 /**
- * gtk_scale_set_value_pos:
+ * gtk_scale_set_value_pos: (attributes org.gtk.Method.set_property=value-pos)
  * @scale: a `GtkScale`
  * @pos: the position in which the current value is displayed
  *
@@ -1235,7 +1235,7 @@ gtk_scale_set_value_pos (GtkScale        *scale,
 }
 
 /**
- * gtk_scale_get_value_pos:
+ * gtk_scale_get_value_pos: (attributes org.gtk.Method.get_property=value-pos)
  * @scale: a `GtkScale`
  *
  * Gets the position in which the current value is displayed.